/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.asset.model.resp;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;

import top.continew.admin.common.model.resp.BaseDetailResp;

import java.io.Serial;
import java.time.*;

/**
 * 盘点任务详情信息
 *
 * @author CharlieYan
 * @since 2025/07/11 15:07
 */
@Data
@ExcelIgnoreUnannotated
@Schema(description = "盘点任务详情信息")
public class CheckTaskDetailResp extends BaseDetailResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 任务名称
     */
    @Schema(description = "任务名称")
    @ExcelProperty(value = "任务名称")
    private String name;

    /**
     * 项目（0设备，1配件，2软件）
     */
    @Schema(description = "项目（0设备，1配件，2软件）")
    @ExcelProperty(value = "项目（0设备，1配件，2软件）")
    private String type;

    /**
     * 责任人名称
     */
    @Schema(description = "责任人名称")
    @ExcelProperty(value = "责任人")
    private String nickname;

    /**
     * 开始日期
     */
    @Schema(description = "开始日期")
    @ExcelProperty(value = "开始日期")
    private LocalDate startDate;

    /**
     * 结束日期
     */
    @Schema(description = "结束日期")
    @ExcelProperty(value = "结束日期")
    private LocalDate endDate;

    /**
     * 状态（0进行，1中止，2完成）
     */
    @Schema(description = "状态（0进行，1中止，2完成）")
    @ExcelProperty(value = "状态（0进行，1中止，2完成）")
    private Integer status;

    /**
     * 总数
     */
    @Schema(description = "总数")
    @ExcelProperty(value = "状态（0进行，1中止，2完成）")
    private Integer totalItems;

    /**
     * 已盘到
     */
    @Schema(description = "已盘到")
    @ExcelProperty(value = "状态（0进行，1中止，2完成）")
    private Integer checked;

    /**
     * 盘亏
     */
    @Schema(description = "盘亏")
    @ExcelProperty(value = "状态（0进行，1中止，2完成）")
    private Integer notFound;

    /**
     * 未盘
     */
    @Schema(description = "未盘")
    @ExcelProperty(value = "状态（0进行，1中止，2完成）")
    private Integer notChecked;

}